package com.cn.bulu.service;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import com.cn.bulu.utils.BuluResult;

public interface DealerService {
	//注册
	public BuluResult register(String phone, String password);
	//判断手机号是否可以注册
	public BuluResult isPhone(String phone);
	//完善信息
	public BuluResult completeDealerData(Integer dealerId, String name, String referrer, String storeName,
			String detailAddress, String imgs);
	//登录
	public BuluResult login(String phone, String password,HttpServletRequest request);
	//忘记密码
	public BuluResult getDealerPassword(String phone, String password);
	//修改经销商图片
	public BuluResult updateImgs(String[] imgs,HttpServletRequest request);
	//订单中的未完成
	public BuluResult NoComplete(HttpServletRequest request, Integer page);
	//商品利润详情
	public BuluResult selectProfits(HttpServletRequest request,Integer type);
	//查询子账号
	public BuluResult selectChild(HttpServletRequest request);
	//停用子账号
	public BuluResult chageChild(Integer customerId);
	//修改子账号密码
	public BuluResult chageChildPassword(Integer customerId, String password);
	//申请子账号
	public BuluResult applyChild(HttpServletRequest request, String nickName, String password);
	//查询可提现
	public BuluResult selectWallet(HttpServletRequest request);
	//查询经销商推荐客户数
	public BuluResult selectCustomerN(HttpServletRequest request);
	//查询自营已完成订单
	public BuluResult YesComplete(HttpServletRequest request);
	//查询二级未完成订单
	public BuluResult NoComplete2(HttpServletRequest request, Integer page);
	//查询二级已完成订单
	public BuluResult YesComplete2(HttpServletRequest request);
	//经销商自主下单测量订单
	public BuluResult insertCIndent(HttpServletRequest request,String name, String phone, Date subscribeTime, Integer roomNumB, String city,
			String address,String remark);
	//点击提现记录
	public BuluResult selectRecord(HttpServletRequest request);
	//经销商自主下单安装订单
	public BuluResult insertAIndent(HttpServletRequest request,String name, String phone, Date subscribeTime, String baseAddress,String detailAddress, String city,
			String address, String anyGoods);
	//盈利详情
	public BuluResult selectObtain(HttpServletRequest request, Integer year);
	//盈利详情中点击年利润(自营)
	public BuluResult selectProprietary(HttpServletRequest request, Integer year, Integer month);
	//盈利详情中点击年利润(二级经销商)
	public BuluResult selectScendProprietary(HttpServletRequest request, Integer year, Integer month);
	//添加银行卡和提现密码和身份证图片
	public BuluResult updateXinka(HttpServletRequest request, String boundBank, String bankNumber,
			String recordPassword, String imgs);
	//查询订单中内容
	public BuluResult getGoodsByOrderId(HttpServletRequest request, Integer orderId);
	//盈利详情中点击年利润(自营)点击子账号
	public BuluResult selectChildOrder(HttpServletRequest request,Integer customerId,Integer year,Integer month);
	//查询订单中的内容
	public BuluResult selectScendGoods(HttpServletRequest request, Integer orderId);
	//根据经销商id查询其完成的订单
	public BuluResult selectScendDealer(HttpServletRequest request, Integer scendDealerId,Integer year,Integer month);
	//查询个人信息
	public BuluResult selectDealer(HttpServletRequest request);
	//一级经销商查看自身二级的商品利润详情
	public BuluResult selectProfits2(HttpServletRequest request, Integer type);
	//根据商品号查询一些信息
	public BuluResult selectXGoods(HttpServletRequest request,Integer goodsId);
	//查询广告
	public BuluResult selectGuanggao();

}
